package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 盘点单明细
 * @author jinss
 * @date 2020-08-28 10:15:00
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="CountingItem对象", description="盘点单明细")
@TableName("wms_counting_item")
public class CountingItem extends BasicEntity{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "盘点单号")
    @TableField("counting_code")
    private String countingCode;

    @ApiModelProperty(value = "库存标识")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "货主编码")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("goods_code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    @TableField("good_code")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    @TableField("goods_bar_code")
    private String goodsBarCode;

    @ApiModelProperty(value = "单位")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "库位")
    @TableField("location")
    private String location;

    @ApiModelProperty(value = "生产日期")
    @TableField("gmt_manufacture")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @TableField("gmt_expire")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @TableField("gmt_stock")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "批次号")
    @TableField("lot")
    private String lot;

    @ApiModelProperty(value = "收货批次号")
    @TableField("receive_lot")
    private String receiveLot;

    @ApiModelProperty(value = "供应商")
    @TableField("supplier")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    @TableField("serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    @TableField("extend_one")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    @TableField("extend_two")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    @TableField("extend_three")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    @TableField("extend_four")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @TableField("extend_five")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @TableField("extend_six")
    private LocalDateTime extendSix;


    @ApiModelProperty(value = "锁定状态")
    @TableField("is_lock")
    private Integer isLock;

    @ApiModelProperty(value = "库存状态（待弃用）")
    @TableField("inventory_status")
    private String inventoryStatus;

    @ApiModelProperty(value = "库存状态")
    @TableField("goods_status")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态")
    @TableField("goods_status_name")
    private String goodsStatusName;


    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;



    @ApiModelProperty(value = "PDA操作状态:0未盘点，1已盘点")
    @TableField("pda_op_status")
    private Integer pdaOpStatus;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "库区")
    @TableField("warehouse_space_code")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "库区名称")
    @TableField("warehouse_space_name")
    private String warehouseSpaceName;

    @ApiModelProperty(value = "盘点数量")
    @TableField(exist = false)
//    @NotNull(message = "盘点数量不能为空")
    private BigDecimal countingQuantity;

    @ApiModelProperty(value = "容器号")
    @TableField("container_bar_code")
    private String containerBarCode;

    @ApiModelProperty(value = "货主名称")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "单位")
    @TableField("goods_unit_name")
    private String goodsUnitName;


    @ApiModelProperty(value = "单位名称生成盘点单时试用")
    @TableField(exist = false)
    private String unitName;

    @ApiModelProperty(value = "库位码")
    @TableField("location_name")
    private String locationName;


}
